export default {
	namespaced:true, //开启命名空间后，访问所有属性都需要带模块名
	state(){
		return {
			userInfo:{
				userId:'',
				token:''
			}
		}
	},
	getters:{
		getUserId(state){
			let userId = state.userInfo.userId
			console.log(state.userInfo);
			return userId
		}
	},
	mutations:{
		initInfo(state,{userId,token}){
			state.userInfo['userId'] = userId;
			state.userInfo['token'] = token;
		}
	},
	actions:{
		
	}
}